require("../css/advertising.less")

document.ready(function(){
let countNum=document.querySelector("#countNum")
let countDown=document.getElementById("countDown")
    let count=5;
    countNum.textContent=count;
    let timerId=window.setInterval(function(){
        count--
        if(count==0){
            window.clearInterval(timerId)
            window.location.href="./login.html"
            return
            }
            countNum.textContent=count
         },1000)
      
         countDown.addEventListener("click",function(){
            window.clearInterval(timerId)
            window.location.href="./login.html"
        })
})